<template>
  <v-card flat height="168">
    <v-spacer class="d-flex dialog-content">
      <v-col class="bold-text">
        Are you sure to {{ propType.toLowerCase() }} quotation?
      </v-col>
      <v-col>
        <v-btn
          @click="submit"
          color="#D9D9D9"
          fab
          elevation="0"
          class="send-btn ml-2"
        >
          <v-icon
            :class="{ 'send-icon': propType === 'Send' }"
            small
            color="#3B4765"
          >
            {{ propType === "Email" ? "mdi-email" : "mdi-send" }}
          </v-icon>
        </v-btn>
      </v-col>
    </v-spacer>
  </v-card>
</template>
<script lang="ts">
import { Vue, Component } from "vue-property-decorator";
@Component({
  props: {
    type: String,
  },
})
export default class SendDialog extends Vue {
  get propType() {
    return this.$props.type;
  }
  submit() {
    this.$emit("submit");
  }
}
</script>
<style lang="scss" scoped>
@import "@/components/Quotation/Dialog/SendQuote.scss";
@import "@/components/Quotation/Dialog/Dialog.scss";
</style>
